#!/bin/bash
user=$(whoami)
sudo cp sources.list /etc/apt/sources.list
sudo cp xfce4-keyboard-shortcuts.xml /home/"${user}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml  
sudo cp accels.scm /home/"${user}"/.config/xfce4/terminal/accels.scm #terminal shortcuts

sudo apt update 
sudo apt upgrade -y

sudo apt install flatpak lightdm-gtk-greeter-settings dconf-editor pyqt5-dev-tools zip lightdm libgtk-3-dev liblightdm-gobject-1-0 libdbus-glib-1-dev  gtk2-engines-murrine sassc autoconf gcc make pkg-config libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libev-dev libx11-xcb-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util0-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev xutils-dev plank software-properties-common cmake libgee-0.8-dev libgnome-menu-3-dev cdbs valac libvala-0.48-dev libglib2.0-dev libwnck-3-dev libgtk-3-dev git lightdm gcc g++ wget rofi papirus-icon-theme imagemagick xcftools bluetooth bluez blueman libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev libtk8.6 libgdm-dev libdb4o-cil-dev libpcap-dev printer-driver-all libcups2-dev libcups2 libcupsfilters-dev libppd0 libppd-dev cups mugshot -y

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

sudo cp i3lock-everblush /usr/bin




mkdir /home/"${user}"/git
cd /home/"${user}"/git
git clone https://github.com/vinceliuice/WhiteSur-gtk-theme
git clone https://github.com/vinceliuice/WhiteSur-icon-theme
git clone https://github.com/vinceliuice/Colloid-icon-theme
git clone https://github.com/Raymo111/i3lock-color
git clone https://github.com/yeyushengfan258/Reversal-icon-theme
git clone --recursive https://github.com/thegamerhat/lightdm-glorious-webkit2
git clone https://github.com/Antergos/lightdm-webkit2-greeter.git greeter
git clone https://github.com/Antergos/web-greeter.git
git clone https://github.com/pixegami/terminal-profile
git clone https://github.com/mebeim/grub-fallout-terminal-theme
git clone https://github.com/newmanls/rofi-themes-collection


cd /home/"${user}"/git/Colloid-icon-theme/cursors/
sudo ./install.sh

cd /home/"${user}"/git/WhiteSur-gtk-theme/
./install.sh -N --right -t purple

cd /home/"${user}"/git/Reversal-icon-theme
./install.sh -a

cd /home/"${user}"/git/greeter
./autogen.sh --prefix=/usr
make	

cd /home/"${user}"/git/web-greeter
sudo make install

sudo cp -r lightdm-glorious-webkit2 /usr/share/lightdm-webkit/themes/glorious

cd /home/"${user}"/git/i3lock-color
./install-i3lock-color.sh
cd build
make

xfconf-query --create -c xfce4-session -p /general/LockCommand -t string -s "i3lock-everblush"

cd /home/"${user}"/git/grub-fallout-terminal-theme
make
sudo make install

mkdir /home/"${user}"/.config/rofi
mkdir /home/"${user}"/.local/share/rofi

cp -r /home/"${user}/git/rofi-themes-collection/themes ~/.local/share/rofi
cp config.rasi /home/"${user}"/.config/rofi

cd /home/"${user}"/git/terminal-profile
./install_powerline.sh
./install_terminal.sh -y
./install_profile.sh

sudo apt install pulseaudio-bluetooth-discover

